import{createRouter,createWebHistory} from "vue-router"
import {staticRoutes} from "@/router/routes"
const router = createRouter({
    history: createWebHistory(),
    routes: staticRoutes,
    //配置跳转路由之后更新到最上面
    // scrollBehavior(){
    //     //升到最上面
    //     return {top:0,left:0}
    // }
})

//暴露路由
export default router